<template>
  <div class="f-list-header" style="border: none;margin-bottom: 0;">
    <div class="f-list-header__row">
      <div class="f-list-header__row-item">
        <slot name="primary"></slot>
      </div>
    </div>
    <slot name="suffix"></slot>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },

  watch: {},

  props: {},
  methods: {}
}
</script>
<style lang="less" scoped>
@import '~assets/main.less';
// 列表头的筛选框
.f-list-header {
  border-bottom: 1px solid @c-border;
  background: #fff;
  padding-bottom: 5px;
  margin-bottom: @m;
  overflow: hidden;
  .f-list-header__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: @m / 2;
    &:last-child {
      margin-bottom: 0;
    }
    .f-list-header__row-item {
      & > * {
        margin-bottom: 5px;
        & + * {
          margin-left: 5px;
        }
      }
      &:last-child {
        flex-shrink: 0;
      }
    }
    @media screen and (max-width: 800px) {
      display: block;
      .f-list-header__row-item:last-child {
        margin-top: @m;
      }
      .f-list-header__row-item:first-child {
        margin-top: 0;
      }
    }
  }
}
</style>
